
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>劳动合同管理</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<!-- <link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet"> -->
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>
   
    </style>

</head>

<body class="white-bg" style="padding: 3px;font-size: 13px">
    <div class="page-heade">
       <h2 class="title_color text-center">劳动合同管理</h2>
    </div>
    <form action="" class="form-inline" id="form1">
        <table class="table table-bordered bud_hei">
            <tr>
                <td><a href="javascript:;" class="btn btn-sm btn-primary" id="addlaborcontract">添加劳动合同</a><span class="lr_5"></span><a href="{:url('Other/laborcontractalize')}" class="btn btn-sm btn-info J_menuItem">劳动合同分析</a><span class="lr_5"></span><a href="{:url('Other/laborcontractalizelist')}" class="btn btn-sm btn-info J_menuItem">不需要签劳动合同的职员</a></td>
            </tr>
            <tr>
              <td>索引：<input type="text" class="form-control" name=""><span class="lr_5"></span>甲方：<input type="text" class="form-control" name=""><span class="lr_5"></span>乙方：<input type="text" class="form-control" name=""><span class="lr_5"></span>部门：<input type="text" class="form-control" name=""><span class="lr_5"></span> 未来：
              <select name="" id="" class="form-control select">
                  <option value="0">请选择</option>
                  <option value="1">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
              </select>个月即将到期
            </td>
            </tr>
            <tr>
                <td class="text-center"><button class="btn-sm btn-info btn">查询</button><span class="lr_5"></span><button class="btn-sm btn-info btn" type="reset" id="reset">清空</button><span class="lr_5"></span><a href="javascript:;" class="btn btn-sm btn-info">导出Excel</a></td>
            </tr>
        </table>
</form>
    <table class="table table-striped table-bordered table-hover bud_hei text-left" style="width: 100%;">
        <tr class="info">
            <th class="text-center">No.</th>
            <th class="text-center">索引</th>
            <th class="text-center">乙方姓名</th>
            <th class="text-center">职务</th>
            <th class="text-center">部门</th>
            <th class="text-center">甲方名称</th>
            <th class="text-center">合同起始日</th>
            <th class="text-center">合同到期日</th>
            <th class="text-center">签署次数</th>
            <th class="text-center">已返回合同</th>
            <th class="text-center">人员状态</th>
            <th class="text-center">合同状态</th>
            <th class="text-center">操作</th>
        </tr>
        <tbody style="border: 0">
            <tr class="colorRed">
                <td style="width: 3%" class="text-center">1</td>
                <td><a href="javascript:;" class="suoyin">02932</a></td>
                <td>张强</td>
                <td>董事长</td>
                <td>董事会</td>
                <td>广州销路通软件公司</td>
                <td>2018-01-14</td>
                <td>2018-01-14</td>
                <td>1</td>
                <td>√</td>
                <td>在职</td>
                <td>更改</td>
                <td><a href="javascript:;" class="modify">修改</a>&nbsp;<a href="javascript:;" class="delthis">删除</a>&nbsp;<a href="javascript:;" class="jchu">解除</a>&nbsp;<a href="javascript:;" class="zhzhi">终止</a>&nbsp;<a href="javascript:;" class="notx">不再提醒</a></td>
            </tr>
             <tr>
              <td style="width: 3%" class="text-center">2</td>
                <td><a href="javascript:;" class="suoyin">02932</a></td>
                <td>张强</td>
                <td>董事长</td>
                <td>董事会</td>
                <td>广州销路通软件公司</td>
                <td>2018-01-14</td>
                <td>2018-01-14</td>
                <td>1</td>
                <td>√</td>
                <td>在职</td>
                <td>更改</td>
                <td><a href="javascript:;"  class="modify">修改</a>&nbsp;<a href="javascript:;" class="delthis">删除</a>&nbsp;<a href="javascript:;" class="jchu">解除</a>&nbsp;<a href="javascript:;" class="zhzhi">终止</a></td>
            </tr>
    </tbody>
    </table>

    <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5>
<div id="addlaborcontractDiv" class="ibox-content" style="display: none;">
    <form action="" class="form-inline">
        <table class="table table-bordered">
            <tr>
                <td style="width: 140px" class="text-center">索引<span class="colorRed">*</span></td>
                <td colspan="3"><input type="text" class="form-control" name=""></td>
            </tr>
            <tr>
              <td class="text-center">合同名称<span class="colorRed">*</span></td>
              <td colspan="3"><input type="text" class="form-control" name=""></td>
            </tr>
            <tr>
              <td class="text-center">甲方名称<span class="colorRed">*</span></td>
              <td>
                <select name="" id="" class="form-control select">
                    <option value="0">请选择</option>
                    <option value="1">广州销路通软件公司</option>
                    <option value="2">A公司</option>
                    <option value="3">测试甲方名称</option>
                    <option value="4">B公司</option>
                </select>
              </td>
              <td class="text-center">乙方名称<span class="colorRed">*</span></td>
              <td>
                 <div class="input-group">
                            <input id="area_id" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 200px;width: 200px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>

              </td>
            </tr>
            <tr>
              <td class="text-center">合同起始日<span class="colorRed">*</span></td>
              <td>  <input type="text" id="start" class="form-control layer-date " style="min-width:160px;width:160px;display: inline-block;" name=""></td>
              <td class="text-center">合同到期日<span class="colorRed">*</span></td>
              <td>  <input type="text" id="end" class="form-control layer-date " style="min-width:160px;width:160px;display: inline-block;" name=""></td>
            </tr>
            <tr>
              <td class="text-center">签署次数</td>
              <td><input type="text" class="form-control" name="" style="width: 40px;background-color: #efffff;"><a href="javascript:;">查询</a><span class="font-bold">(请点击查询按钮获取本次签署次数)</span></td>
              <td class="text-center">已返回合同</td>
              <td>
                <label for="fhconstracty">
                    <input type="radio" name="fhconstract" id="fhconstracty" value="0">√
                </label>
                <label for="fhconstractn">
                    <input type="radio" name="fhconstract" id="fhconstractn" value="1">×
                </label>
              </td>
            </tr>
            <tr>
              <td class="text-center">工作地点</td>
              <td><input type="text" class="form-control" name=""></td>
              <td class="text-center">合同性质</td>
              <td>
                <select name="" id="" class="form-control select">
                    <option value="0">请选择</option>
                    <option value="1">8小时工作制</option>
                    <option value="2">不定时工作制</option>
                    <option value="3">综合工时</option>
                </select>
              </td>
            </tr>
            <tr>
              <td class="text-center">合同通讯地址</td>
              <td colspan="3"><input type="text" class="form-control" style="width: 60%"></td>
            </tr>
            <tr>
              <td class="text-center">备注</td>
              <td colspan="3"><textarea name="" id="" style="width: 70%;height: 60px;resize: none;" class="form-control"></textarea></td>
            </tr>
        </table>
         <div class="form-group white-bg" style="margin:20px 10px 20px 20px;">
            <div id="uploader" class="wu-example">
                <!--用来存放文件信息-->
                <div id="thelist" class="uploader-list">
                                   </div>
                <div class="btns">
                    <div id="picker">选择文件</div>
                    <button id="ctlBtn" class="btn btn-default">开始上传</button>
                </div>
                <input type="hidden" name="attach" id="attach"  >
            </div>
            <span>注：最多上传15个文件，每个文件小于50M,支持格式：</span><br>jpg,bnp,gif,png,jpeg,tif,raw,doc,docx,xls,xlsx,ppt,pptx,txt,pdf,rar,zip,mp4,avi,rmvb,rm,mid,3gp,AVI,3GP,,mpg,mp3,wma,wav
        </div>

    </form>
</div>
<div class="ibox-content" id="laborcontractDivdt" style="display: none;">
    <form action="" class="form-inline">
      <table class="table-bordered table">
          <tr>
            <td style="width: 140px" class="text-center">索引</td>
            <td colspan="3">02932</td>
          </tr>
           <tr>
            <td class="text-center">合同名称</td>
            <td colspan="3">张强的劳动合同</td>
          </tr>
           <tr>
            <td class="text-center">甲方名称</td>
            <td>广州销路通软件有限公司</td>
            <td class="text-center" style="width: 140px">乙方名称</td>
            <td>张强</td>
          </tr>
            <tr>
            <td class="text-center">合同起始日</td>
            <td>2015-11-4</td>
            <td class="text-center">合同到期日</td>
            <td>2015-11-30</td>
          </tr>
            <tr>
            <td class="text-center">签署次数</td>
            <td>1</td>
            <td class="text-center">已返回合同</td>
            <td>
              <label for="yfconstracty">
                <input type="radio" name="yfconstract" id="yfconstracty" checked disabled>√
              </label>
               <label for="yfconstractn">
                <input type="radio" name="yfconstract" id="yfconstractn" disabled>×
              </label>
            </td>
          </tr>
           <tr>
            <td class="text-center">工作地点</td>
            <td>广州</td>
            <td class="text-center">合同性质</td>
            <td>不定时工作制</td>
          </tr>
          <tr>
            <td class="text-center">乙方试用期</td>
            <td colspan="3">自：至：</td>
          </tr>
            <tr>
            <td class="text-center">合同通讯地址</td>
            <td colspan="3">无</td>
          </tr>
          <tr>
             <td class="text-center">备注</td>
             <td colspan="3"></td>
          </tr>
      </table>
     </form>
</div>
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
 <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
 <script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>

  <script src="__STATIC__/layout/js/contabs_sub.js"></script>
   <script>
   /*删除*/
        $(document).on("click",".delthis",function(){
      swal({ 
          title: "确定此操作吗？", 
          text: "", 
          type: "warning",
          showCancelButton: true, 
          confirmButtonColor: "#DD6B55",
          confirmButtonText: "确定！", 
          closeOnConfirm: false
      },
      function(){
        swal("", "", "success"); 
      });
})
  /*解除*/
      $(document).on("click",".jchu",function(){
      swal({ 
          title: "确定此操作吗？", 
          text: "", 
          type: "warning",
          showCancelButton: true, 
          confirmButtonColor: "#DD6B55",
          confirmButtonText: "确定！", 
          closeOnConfirm: false
      },
      function(){
        swal("", "", "success"); 
      });
})
/*终止*/
        $(document).on("click",".zhzhi",function(){
      swal({ 
          title: "确定此操作吗？", 
          text: "", 
          type: "warning",
          showCancelButton: true, 
          confirmButtonColor: "#DD6B55",
          confirmButtonText: "确定！", 
          closeOnConfirm: false
      },
      function(){
        swal("", "", "success"); 
      });
})
/*不再提醒*/
        $(document).on("click",".notx",function(){
      swal({ 
          title: "确定此操作吗？", 
          text: "", 
          type: "warning",
          showCancelButton: true, 
          confirmButtonColor: "#DD6B55",
          confirmButtonText: "确定！", 
          closeOnConfirm: false
      },
      function(){
        swal("", "", "success"); 
      });
})

/*修改*/
$(document).on("click",".modify",function(){
      layer.open({
                           type: 1,
                           title: '新增劳动合同',
                           area: ['950px', '550px'],
                           fixed: false, //不固定
                           maxmin: true,
                           content: $('#addlaborcontractDiv'),
                           btn:["提交","返回"]
                        /*   yes: function (i, o) {
                               var param = $('#form1').serialize()
                           $.post('/index/workflowdb/ysfy_cg.html', param, function (data) {
                               if (data.success) {
                                   swal({title: data.msg}, function () {
                                       layer.close(i)
                                       location.reload()
                                   })
                               } else {
                                   swal(data.msg)
                               }
                           }, 'json')
                       }
*/
                    });

})

$(document).on("click",".suoyin",function(){
       layer.open({
                           type: 1,
                           title: '索引',
                           area: ['950px', '550px'],
                           fixed: false, //不固定
                           maxmin: true,
                           content: $('#laborcontractDivdt'),
                        

      })
  })
    </script>
<script>
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    
 $("#addlaborcontract").click(function(){
     layer.open({
                           type: 1,
                           title: '新增劳动合同',
                           area: ['950px', '550px'],
                           fixed: false, //不固定
                           maxmin: true,
                           content: $('#addlaborcontractDiv'),
                           btn:["提交","返回"]
                        /*   yes: function (i, o) {
                               var param = $('#form1').serialize()
                           $.post('/index/workflowdb/ysfy_cg.html', param, function (data) {
                               if (data.success) {
                                   swal({title: data.msg}, function () {
                                       layer.close(i)
                                       location.reload()
                                   })
                               } else {
                                   swal(data.msg)
                               }
                           }, 'json')
                       }
*/
                    });


 })

  $(document).ready(function () {
        $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })   

 
 var jieshou = $("#area_id");
 sousuo(jieshou);
       function sousuo(id){
            id.bsSuggest({
            allowNoKeyword: false, //是否允许无关键字时请求数据
            multiWord: true, //以分隔符号分割的多关键字支持
            separator: ",", //多关键字支持时的分隔符，默认为空格
            getDataMethod: "url", //获取数据的方式，总是从 URL 获取
            url: 'http://unionsug.baidu.com/su?p=3&t=' + (new Date()).getTime() + '&wd=',
            /*优先从url ajax 请求 json 帮助数据，注意最后一个参数为关键字请求参数*/
            jsonp: 'cb',
            /*如果从 url 获取数据，并且需要跨域，则该参数必须设置*/
            processData: function (json) { // url 获取数据时，对数据的处理，作为 getData 的回调函数
                var i, len, data = {
                    value: []
                };
                if (!json || !json.s || json.s.length === 0) {
                    return false;
                }

                // console.log(json);
                len = json.s.length;

                jsonStr = "{'value':[";
                for (i = 0; i < len; i++) {
                    data.value.push({
                        word: json.s[i]
                    });
                }
                data.defaults = 'baidu';

                //字符串转化为 js 对象
                return data;
            }
        });

          }


 //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY-MM-DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY-MM-DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);

</script>
</body>

</html>